package com.qingjiang.projectschedule.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qingjiang.projectschedule.pojo.ProjectNode;
import com.qingjiang.projectschedule.service.ProjectNodeService;
import com.qingjiang.projectschedule.mapper.ProjectNodeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author jx
* @description 针对表【project_node(节点名称表)】的数据库操作Service实现
* @createDate 2024-03-13 20:05:11
*/
@Service
public class ProjectNodeServiceImpl extends ServiceImpl<ProjectNodeMapper, ProjectNode>
    implements ProjectNodeService{
    @Autowired
    private ProjectNodeMapper nodeMapper;
    @Override
    public String getNodeNameById(Integer nodeId) {
        ProjectNode projectNode = nodeMapper.selectById(nodeId);
        return projectNode.getNodeName();
    }
}




